﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace JuniorProject.Models.Employee
{
    public class EmployeeJobToQuestionModel
    {
        [DataType(DataType.Text)]
        [Display(Name = "JobID")]
        public int JobID { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Job Title")]
        public string Title { get; set; }

        public List<EmployeeSelectQuestionModel> Questions { get; set; }

        public EmployeeJobToQuestionModel(int JobID, string Title, List<EmployeeSelectQuestionModel> Questions)
        {
            this.JobID = JobID;
            this.Title = Title;
            this.Questions = Questions;
        }

        public EmployeeJobToQuestionModel()
        {

        }
    }

    public class EmployeeSelectQuestionModel
    {
        [Display(Name = "Question ID")]
        public int QuestionID { get; set; }

        [Display(Name = "Question")]
        public string Question { get; set; }

        public bool Selected { get; set; }

        public EmployeeSelectQuestionModel(int ID, string Question, bool Selected)
        {
            this.QuestionID = ID;
            this.Question = Question;
            this.Selected = Selected;
        }

        public EmployeeSelectQuestionModel()
        {

        }
    }
}